package com.hnevc.yourhealthmanager.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnevc.yourhealthmanager.entity.HealthPlane;
import com.hnevc.yourhealthmanager.entity.SportRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HealthPlaneMapper extends BaseMapper<HealthPlane> {
    @Select("select id,plane_name,user_id,plane_image,target_weight,start_weight,start_date, end_date,plane_state,plane_description from health_plane_table where user_id = #{userId}")
    List<HealthPlane> selectByUserId(@Param("userId") Integer userId);
}